Skip to content

Conversation

SashaLesik
Copy link

No description provided.

Copy link

@skeapskeap skeapskeap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

советую больше внимания уделять неймингу, это прям важная хрень
например в 1 задании имя one_day лучше будет передавать смысл переменной delta
ну и для days_30 тоже можно придумать лучшее имя

кстати, только сейчас заметил, что PR сделан в основной репозиторий

@@ -7,22 +7,25 @@
2. Превратите строку "01/01/20 12:10:03.234567" в объект datetime

"""
import datetime as dt
from datetime import timedelta


def print_days():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

yesterday = today - delta
days_30 = today - 30*delta

print(today, yesterday, days_30)


def str_2_datetime(date_string):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants